(function () {
    "use strict";
    /**
     * jQuery plugin config use ui-jq directive , config the js and css files that required
     * key: function name of the jQuery plugin
     * value: array of the css js file located
     */
    app
        .constant("JQ_CONFIG", {
            easyPieChart: [
                // "scripts/vendor/jquery/charts/easypiechart/jquery.easy-pie-chart.css",
                "scripts/vendor/jquery/charts/easypiechart/jquery.easy-pie-chart.js"
            ],
            sparkline: [
                "scripts/vendor/jquery/charts/sparkline/jquery.sparkline.min.js"
            ],
            plot: [
                "scripts/vendor/jquery/charts/flot/jquery.flot.min.js",
                "scripts/vendor/jquery/charts/flot/jquery.flot.pie.min.js",
                "scripts/vendor/jquery/charts/flot/jquery.flot.resize.js",
                "scripts/vendor/jquery/charts/flot/jquery.flot.orderBars.js",
                "scripts/vendor/jquery/charts/flot/jquery.flot.spline.js",
                "scripts/vendor/jquery/charts/flot/jquery.flot.tooltip.min.js"
            ],
            slimScroll: [
                "scripts/vendor/jquery/slimscroll/jquery.slimscroll.min.js"
            ],
            sortable: [
                "scripts/vendor/jquery/sortable/jquery.sortable.js"
            ],
            nestable: [,
                "scripts/vendor/jquery/nestable/nestable.css",
                "scripts/vendor/jquery/nestable/jquery.nestable.js"
            ],
            filestyle: [
                "scripts/vendor/jquery/file/bootstrap-filestyle.min.js"
            ],
            slider: [
                "scripts/vendor/jquery/slider/slider.css",
                "scripts/vendor/jquery/slider/bootstrap-slider.js"
            ],
            TouchSpin: [
                "scripts/vendor/jquery/spinner/jquery.bootstrap-touchspin.css",
                "scripts/vendor/jquery/spinner/jquery.bootstrap-touchspin.min.js"
            ],
            wysiwyg: [
                "scripts/vendor/jquery/wysiwyg/bootstrap-wysiwyg.js",
                "scripts/vendor/jquery/wysiwyg/jquery.hotkeys.js"
            ],
            dataTable: [,
                "scripts/vendor/jquery/datatables/dataTables.bootstrap.css",
                "scripts/vendor/jquery/datatables/jquery.dataTables.min.js",
                "scripts/vendor/jquery/datatables/fnSetFilteringDelay.js",
                "scripts/vendor/jquery/datatables/dataTables.bootstrap.js"
            ],
            footable: [
                "scripts/vendor/jquery/footable/footable.core.css",
                "scripts/vendor/jquery/footable/footable.all.min.js"
            ]
        })
        // oclazyload config
        .config(["$ocLazyLoadProvider", function ($ocLazyLoadProvider) {
            // We configure ocLazyLoad to use the lib script.js as the async loader
            $ocLazyLoadProvider.config({
                debug: false,
                events: true,
                modules: [{
                    name: "ngGrid",
                    files: [
                        "scripts/vendor/angular/ng-grid/ng-grid.min.css",
                        "scripts/vendor/angular/ng-grid/ng-grid.min.js"
                    ]
                }, {
                    name: "angularFileUpload",
                    files: [
                        "scripts/vendor/angular/angular-file-upload/angular-file-upload.min.js"
                    ]
                }, {
                    name: "angularBootstrapNavTree",
                    files: [
                        "scripts/vendor/angular/angular-bootstrap-nav-tree/abn_tree.css",
                        "scripts/vendor/angular/angular-bootstrap-nav-tree/abn_tree_directive.js"
                    ]
                }, {
                    name: "textAngular",
                    files: [
                        "scripts/vendor/angular/textAngular/textAngular-sanitize.min.js",
                        "scripts/vendor/angular/textAngular/textAngular.min.js"
                    ]
                }, {
                    name: "vr.directives.slider",
                    files: [
                        "scripts/vendor/angular/angular-slider/angular-slider.css",
                        "scripts/vendor/angular/angular-slider/angular-slider.min.js"
                    ]
                }]
            });
        }]);

})();